import { createRouter, createWebHistory } from "vue-router";
import { LoginActions } from "../auth";

const router = createRouter({
    history: createWebHistory("/"),
    routes: [
        {
            path: "/authentication/login",
            component: () => import("@/views/Login.vue"),
            props: { action: LoginActions.Login }
        },
        {
            path: "/authentication/login-callback",
            component: () => import("@/views/Login.vue"),
            props: { action: LoginActions.LoginCallback }
        },
        {
            path: "/",
            component: () => import("@/views/Home.vue")
        },
    ]
});
export default router;
